﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace ST.Buz.Base.Migrations
{
    public partial class _5 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "TotalRecvMetersDue",
                table: "IMS_FinanceRecvDue");

            migrationBuilder.DropColumn(
                name: "TotalRecvedMeters",
                table: "IMS_FinanceRecvDue");

            migrationBuilder.DropColumn(
                name: "RecvedMeters",
                table: "IMS_FinanceRecvDetail");

            migrationBuilder.DropColumn(
                name: "TotalRecvMeters",
                table: "IMS_FinanceRecv");

            migrationBuilder.DropColumn(
                name: "PreRecvMeters",
                table: "BJG_Machining");

            migrationBuilder.AddColumn<string>(
                name: "PartnerContactMan",
                table: "BJG_Machining",
                maxLength: 20,
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "PartnerContactMan",
                table: "BJG_Machining");

            migrationBuilder.AddColumn<decimal>(
                name: "TotalRecvMetersDue",
                table: "IMS_FinanceRecvDue",
                type: "decimal(18,2)",
                nullable: false,
                defaultValueSql: "((0))");

            migrationBuilder.AddColumn<decimal>(
                name: "TotalRecvedMeters",
                table: "IMS_FinanceRecvDue",
                type: "decimal(18,2)",
                nullable: false,
                defaultValueSql: "((0))");

            migrationBuilder.AddColumn<decimal>(
                name: "RecvedMeters",
                table: "IMS_FinanceRecvDetail",
                type: "decimal(18,2)",
                nullable: false,
                defaultValueSql: "((0))");

            migrationBuilder.AddColumn<decimal>(
                name: "TotalRecvMeters",
                table: "IMS_FinanceRecv",
                type: "decimal(18,2)",
                nullable: false,
                defaultValueSql: "((0))");

            migrationBuilder.AddColumn<decimal>(
                name: "PreRecvMeters",
                table: "BJG_Machining",
                type: "decimal(18,2)",
                nullable: false,
                defaultValueSql: "((0))");
        }
    }
}
